package com.itqf.mapper;

import com.itqf.bean.DtsAccountTrace;
import com.itqf.bean.DtsAccountTraceExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DtsAccountTraceMapper {


    int deleteByExample(DtsAccountTraceExample example);

    int deleteByPrimaryKey(Integer id);



    int insert(DtsAccountTrace record);

    /**
     * 非空插入  做非空判断你
     * @param record
     * @return
     */
    int insertSelective(DtsAccountTrace record);


    /**
     * count聚合函数查询
     * @param example
     * @return
     */
    long countByExample(DtsAccountTraceExample example);


    /**
     * 根据条件查询
     * @param example
     * @return
     */
    List<DtsAccountTrace> selectByExample(DtsAccountTraceExample example);

    /**
     * 根据主键查询
     * @param id
     * @return
     */
    DtsAccountTrace selectByPrimaryKey(Integer id);


    /**
     * 根据条件修改
     * 做非空判断
     * @param record
     * @param example
     * @return
     */
    int updateByExampleSelective(@Param("record") DtsAccountTrace record, @Param("example") DtsAccountTraceExample example);

    int updateByExample(@Param("record") DtsAccountTrace record, @Param("example") DtsAccountTraceExample example);


    /**
     * 根据主键修改
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(DtsAccountTrace record);

    int updateByPrimaryKey(DtsAccountTrace record);
}